﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Bungalow
{
    public partial class SPTabBar : UserControl
    {
        public Dictionary<String, Uri> Elements = new Dictionary<string, Uri>();
        
        public SPTabBar()
        {
            InitializeComponent();
        }

        private void SPTabBar_Load(object sender, EventArgs e)
        {

        }
        Font graphicsFont = new Font("Tahoma", 11);
        int element_top = 2;
        int element_space = 10;
        public void Draw(Graphics g)
        {
            c = new BufferedGraphicsContext();
            BufferedGraphics e = c.Allocate(g, new Rectangle(0, 0, this.Width, this.Height));
            int middle = this.Width / 2;
            int left = middle;
            for (var i = 0; i < this.Elements.Count; i++)
            {
                int string_length = (int)e.Graphics.MeasureString(this.Elements.ElementAt(i).Key, graphicsFont).Width;
               
            }
        }
        BufferedGraphicsContext c;
        protected override void OnPaintBackground(PaintEventArgs e)
        {
            
        }
        private void SPTabBar_Paint(object sender, PaintEventArgs e)
        {

        }
    }
}
